
package com.sausageking.client.consumer.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.sausageking.client.common.ClientUtil;
import com.sausageking.client.consumer.ui.resources.Resources;
import com.sausageking.shared.OfferUtil;

public class MobileDealViewImpl extends Composite implements MobileDealView {

  private static ViewUiBinder uiBinder = GWT.create(ViewUiBinder.class);

  interface ViewUiBinder extends UiBinder<Widget, MobileDealViewImpl> {
  }

  @UiField
  VerticalPanel base;
  
  @UiField
  SimplePanel merchantPanel;

  @Inject
  OfferUtil offerUtil;

  @Inject
  ClientUtil urlUtil;

  @Inject
  Resources resources;

  @SuppressWarnings({})
  public MobileDealViewImpl() {
    initWidget(uiBinder.createAndBindUi(this));
    base.setSpacing(0);
    setHeight(Window.getClientHeight() + "px");
    setWidth(Window.getClientWidth() + "px");
  }

  @Override
  public void setPresenter(Presenter presenter) {
  }

  @Override
  public void addMerchantView(MerchantView merchantView) {
    merchantPanel.add(merchantView);
  }
}
